﻿using System;
using System.Collections.Generic;
using Dapper;
using System.Data;
using XStudio.Common;

namespace XStudio.biz
{
    //数据访问层父类
    public partial class BaseBiz<TEntity> : MySqlDbBase where TEntity : class
    {
        public TEntity Get(String primaryKey)
        {
            return Conn.QuerySingleOrDefault<TEntity>(primaryKey);
        }

        public object Insert(TEntity model)
        {
            return "";
        }

        public int Delete(object primaryKey)
        {
            return 1;
        }

        public int Update(TEntity model)
        {
            return 1;
        }
    }
}
